package com.sh.rbac.domain.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 登录 dto
 *
 * @since 2024-04-05 14:07
 */

@Schema(description = "用户登录参数")
@Data
public class LoginDTO {

    @Schema(name = "username", description = "用户名")
    @NotBlank(message = "账号不能为空")
    private String username;

    @Schema(name = "password", description = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @Schema(name = "randomStr", description = "随机字符串")
    private String randomStr;

    @Schema(name = "code", description = "验证码")
    @NotBlank(message = "验证码不能为空")
    private String code;
}
